const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    visitor_id: { type: mongoose.SchemaTypes.ObjectId, ref: 'Visitor' },
    type: { type: String },
    object: { type: mongoose.SchemaTypes.ObjectId, ref: 'Article' },
    content: { type: String }
}, { timestamps: true }
)

module.exports = mongoose.model('Comment', schema);